Skip to content

[FIX] Content Style: delete image from IRSS container (47832)#11607

Open
chfsx wants to merge 1 commit into
ILIAS-eLearning:release_11from
chfsx:mantis-47832-style-content-image-delete
Open

[FIX] Content Style: delete image from IRSS container (47832)#11607
chfsx wants to merge 1 commit into
ILIAS-eLearning:release_11from
chfsx:mantis-47832-style-content-image-delete

Conversation

@chfsx
Copy link
Copy Markdown
Member

@chfsx chfsx commented May 26, 2026

Summary

  • Images of content styles are stored in the IRSS container since the IRSS migration. Upload and listing already use IRSS, but ImageFileRepo::deleteImageByFilename() still removed the file from the legacy web directory sty/sty_<id>/images, which does not exist for migrated styles — so the delete button in the Style Editor had no effect.
  • This change deletes the entry from the IRSS container via IRSSWrapper::removePathFromContainer() and keeps the legacy delete as a fallback for non-migrated styles.

Mantis: #47832

Test plan

  • Administration > Content Styles > edit any style > Images tab
  • Upload an image, then delete it via the checkbox + Delete button
  • Image is removed from the list and from the IRSS container
  • Repeat with a style that still has a legacy sty/sty_<id>/images directory and confirm deletion still works there

Images of content styles are stored in the IRSS container since the
IRSS migration. Upload and listing already use IRSS, but
ImageFileRepo::deleteImageByFilename() still removed the file from
the legacy web directory sty/sty_<id>/images, which does not exist
for migrated styles. The delete action therefore had no effect.

Delete the entry from the IRSS container via
IRSSWrapper::removePathFromContainer() and keep the legacy delete
as a fallback for non-migrated styles.

Mantis: 47832
@mjansenDatabay mjansenDatabay added bugfix php Pull requests that update Php code labels May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants